package com.zy.je.book.module.tmp.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 出版社（临时数据）
 * </p>
 *
 * @author zy
 * @since 2024-06-21
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("tmp_publisher")
@ApiModel(value = "TmpPublisher对象", description = "出版社（临时数据）")
public class TmpPublisher extends Model<TmpPublisher> {

    private static final long serialVersionUID = 1L;
    private Long id;

    @ApiModelProperty(value = "批次号")
    private String batchNo;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "排序")
    private String sort;

    @ApiModelProperty(value = "链接")
    private String link;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "创建者名称")
    private String createUsername;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "更新者名称")
    private String updateUsername;

    @ApiModelProperty(value = "删除标识")
    @TableLogic(delval = "null")
    private String deleteFlag;

    @ApiModelProperty(value = "删除者")
    private String deleteBy;

    @ApiModelProperty(value = "删除时间")
    private Date deleteTime;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
